﻿namespace Video.Hik
{
    public class MsgReturnedDto
    {
        public bool Success { get; set; }
        public string Error { get; set; }
        public string MsgType { get; set; }
        public dynamic Result { get; set; }

        public MsgReturnedDto(bool success = true, string error = "", object result = null, string msgtype = "")
        {
            Success = success;
            Error = error;
            Result = result;
            MsgType = msgtype;
        }

        public override string ToString()
        {
            return $"Success: {Success}, Error:[{Error}], MsgType: [{MsgType}]. Result: [{Result?.ToString()}]";
        }
    }
}